import {
	computed,
	ref,
	reactive,
	watch,
	watchEffect
} from 'vue'
import sheep from '@/sheep'
import Chinese from 'chinese-s2t'

export default function useLang() {
	const lang = computed(() => sheep.$store('sys').lang)

	function getLangValue(value) {
		if (lang.value === 'cn') {
			return Chinese.t2s(value)
		} else {
			return Chinese.s2t(value)
		}
	}



	return {
		getLangValue,
	}
}